html {
	overflow: hidden;
}
body {
	font-family: Helvetica;
	background: #FFFFFF;
	color: #000000;
	overflow: hidden;
	-webkit-text-size-adjust: none;
	padding: 0;
	margin: 0;
	/*width: 320px;*/
	
	overflow:hidden;
}

body > div {
	position: relative;
	top: 0;
	left: 0;
	margin:0;padding:0;
	width: 320px;
	right: auto;
	display: none;
    min-height: 416px;
	background-color: white;
	z-index: 0;
	
	min-height: 376px;
	padding-top: 40px;
	-webkit-transition: left 0.5 ease-in-out;
	height:100%;
}
/*
body > div[selected=true] {
	display:block;
}
*/
body > div.left {
	left: -320px;
}

body > div.right {
	left: 320px;
}

body > div > div.heading {
	top: 0;
	left: 0;
	margin:0;padding:0;
	position: fixed;
}

h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    line-height: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-shadow: rgba(0, 0, 0, 0.6) 0px 0px 0;
    text-overflow: ellipsis;
    color: #FFFFFF;
    background: #6d84a2 url(iPhoneToolbar.png)  repeat-x;
	display: block;
	width: 300px;
}

a.button {
    position: absolute;
    top: 8px;
    right: 6px;
    -webkit-border-image: url(iPhoneButton.png) 0 5 0 5 fill;
    -moz-border-image: url(iPhoneButton.png) 0 5 0 5 fill;
    -o-border-image: url(iPhoneButton.png) 0 5 0 5 fill;
    border-image: url(iPhoneButton.png) 0 5 0 5 fill;
    -webkit-border-radius: 0;
    border-radius: 0;
    border-width: 0 5px 0 5px;
    padding: 0;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
    text-decoration: none;
    background: none;
}

a.button.homeButton {
    left: 6px;
    right: auto;
    -webkit-border-image: url(iPhoneBackButton.png) 0 8 0 14 fill;
    -moz-border-image: url(iPhoneBackButton.png) 0 8 0 14 fill;
    -o-border-image: url(iPhoneBackButton.png) 0 8 0 14 fill;
    border-image: url(iPhoneBackButton.png) 0 8 0 14 fill;
    border-width: 0 8px 0 14px;
}



/* Contacts */
#contacts {
}
#contacts > ul {
	margin: 0;
	padding: 0;
	height:100%;
}
#contacts > ul > li {
    margin: 0;
    border-bottom: 1px solid #E0E0E0;
    padding: 0;
    background: transparent url(iPhoneArrow_white.png) no-repeat right center;
    font-size: 20px;
    font-weight: bold;
    list-style: none;
}
#contacts > ul > li > a {
    display: inline-block;
	width: 100%;
    padding: 8px 8px 8px 8px;
    text-decoration: none;
    color: inherit;
}
#contacts > ul > li > a.away {
	color:grey;
	font-style: italic;
}
#contacts > ul > li > a.away:after {
	content: " (away)"
}
#contacts ul li .unread {
	color: red;
    padding: 8px 8px;
	position: absolute;
	right: 50px;
	font-variant: small-caps;
	font-size: .8em;
}
#contacts > ul > li > img {
	margin: 12px 32px 2px 2px;
	position: absolute;
	right:0;
}



/* Contact */
#contact img {
	display: block;
	margin: 10px auto;
}
#contact div#details {
	padding: 10px;
}



/* Chat */
#chat {
	background-color: #dbe2ed;
}
#chat div#send_bar {
	position: absolute;
	bottom:0;
	width: 100%;
	height: 95px; /* 60px; */
	background: url(/background_send_bar_full_no_button.png);
}
#chat #send_bar textarea {
	font-size: 20px;
	line-height: 20px;
	height: 75px; /* 40px; */
	width: 220px;
	position: absolute;
	left: 15px;
	bottom: 0;
	padding: 0;
	margin: 0 0 10px 0;
	border: 0;
	overflow: auto;
	font-family: sans-serif;
	background: transparent;
	resize: none;
}
#chat #send_bar textarea:focus {
	outline: 0px none transparent;
}
#chat #send_bar a {
	position: absolute;
	right: 7px;
	bottom: 10px;
	width: 62px;
	height: 26px;
	background: url(/send.png);
	color:transparent;
}
#chat > ul {
	padding-bottom: 95px; /* 60px; */
	margin-left: 0; padding-left: 0;
	list-style-type: none;
}
#chat > ul > li {
	left: 0;
	right: auto;
	margin: 4px auto;
	margin-left: 0;
	margin-right: auto;
	min-height:33px;
}
#chat > ul > li.sent {
	left: auto;
	right: 0;
	margin-left: auto;
	margin-right: 0;
	text-align: right;

}
#chat > ul > li > span {
	display: inline-block;
	text-align: left;
	white-space: pre-wrap;
	max-width: 252px;
	-webkit-border-image: url(white_bubble.png) 13 14 10 21 fill stretch;
	-moz-border-image: url(white_bubble.png) 13 14 10 21 fill stretch;
	-o-border-image: url(white_bubble.png) 13 14 10 21 fill stretch;
	border-image: url(white_bubble.png) 13 14 10 21 fill stretch;
	border-width: 13px 14px 10px 21px;
}
#chat > ul > li.sent > span {
	-webkit-border-image: url(green_bubble.png) 13 21 10 14 fill stretch;
	-moz-border-image: url(green_bubble.png) 13 21 10 14 fill stretch;
	-o-border-image: url(green_bubble.png) 13 21 10 14 fill stretch;
	border-image: url(green_bubble.png) 13 21 10 14 fill stretch;
	border-width: 13px 21px 10px 14px;
}

#chat > ul > li.typing {
	text-align: center;
	color: #888888;
	padding-bottom: 0;
	font-weight: bold;
	font-variant: small-caps;
	overflow: visible;
	position: absolute;
	width: 100%;
}

/*@media only screen and (orientation:landscape) and (max-width: 480px) {
	body {
		background: green;
		width: 480px;
	}
	body #chat div#send_bar {
		width: 480px;
	}
	body > div {
		min-height: 228px;
		width: 480px;
	}
	body h1 {
		width: 460px;
	}
}
@media only screen and (orientation:portrait) {
	body {background: grey;}
}*/